///////////////////////////////////////////////////////////
//  Hour.cpp
//  Implementation of the Class Hour
//  Created on:      25-Out-2010 12:04:13
//  Original author: Eva
///////////////////////////////////////////////////////////

#include "Hour.h"


Hour::Hour(){

}



Hour::~Hour(){

}





unsigned short Hour::getMinutes(){
	return minutes;
}


void Hour::setMinutes(unsigned short minutes){
	if(minutes < 0 || minutes > 60)
		throw horaInvalida();
	else
		this->minutes = minutes;
}


unsigned short Hour::getHour(){
	return hour;
}


void Hour::setHour(unsigned short hour){
	if(hour < 0 || hour > 24)
		throw horaInvalida();
	else
		this->hour = hour;
}